package xian.woniu.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import xian.woniu.entity.User;
import xian.woniu.mapper.custom.CustomUserMapper;
import xian.woniu.service.IUserService;

/**
 * 业务层实现类 负责user表
 * @author SongHang
 * @time 2022/05/18 20:05:59
 */
@Service
@Transactional
public class UserServiceImpl implements IUserService {
    @Autowired
    private CustomUserMapper userMapper;

    @Override
    public void save(User user) {
        userMapper.insert(user);
    }
}
